<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <body>

        <ui:composition template="./PrincipalTemplate.xhtml">

            <ui:define name="top">

            </ui:define>

            <ui:define name="left">

            </ui:define>

            <ui:define name="content">
                <f:view>
                    <h:form>
                        <h1><h:outputText value="View"/></h1>
                        <h:panelGrid columns="2">
                            <h:outputText value="IdDisc:"/>
                            <h:outputText value="#{discsBean.disc.idDisc}" title="IdDisc"/>
                            <h:outputText value="Barcode:"/>
                            <h:outputText value="#{discsBean.disc.barcode}" title="Barcode"/>
                            <h:outputText value="Artist:"/>
                            <h:outputText value="#{discsBean.disc.artist}" title="Artist"/>
                            <h:outputText value="Title:"/>
                            <h:outputText value="#{discsBean.disc.title}" title="Title"/>
                            <h:outputText value="Price:"/>
                            <h:outputText value="#{discsBean.disc.price}" title="Price"/>
                            <h:outputText value="Existence:"/>
                            <h:outputText value="#{discsBean.disc.existence}" title="Existence"/>
                            <h:outputText value="Genre:"/>
                            <h:outputText value="#{discsBean.disc.idgenre}" title="Idgenre"/>
                            <p:commandButton action="#{discsBean.procesarAction()}" value="Acept" ajax="false"/>
                            <p:commandButton value="Cancel" immediate="true" action="#{discsBean.prepararCancelar}" ajax="false"/>

                        </h:panelGrid>
                    </h:form>
                </f:view>

            </ui:define>

        </ui:composition>

    </body>
</html>
